
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>httpd/Apache · AGou's StudyNote</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="AGou">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism-tomorrow.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-insert-logo/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-lightbox/css/lightbox.min.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-donate/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="httpd.conf文件详解.html" />
    
    
    <link rel="prev" href="WEB基础.html" />
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"repo":"AGou-ops/myStudyNote","types":["star","watch","fork"],"size":"small"};
    </script>

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="http://agou-ops.github.io" target="_blank" class="custom-link">◆点击进入我的个人博客</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                        <b>1.1.</b>
                    
                    关于我
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../Program_lang/">
            
                <a href="../Program_lang/">
            
                    
                        <b>1.2.</b>
                    
                    编程语言
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../Program_lang/Python.html">
            
                <a href="../Program_lang/Python.html">
            
                    
                        <b>1.2.1.</b>
                    
                    Python
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../Program_lang/Java.html">
            
                <a href="../Program_lang/Java.html">
            
                    
                        <b>1.2.2.</b>
                    
                    Java
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../Program_lang/Splash_Lua.html">
            
                <a href="../Program_lang/Splash_Lua.html">
            
                    
                        <b>1.2.3.</b>
                    
                    Splash_Lua
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../Database/">
            
                <a href="../Database/">
            
                    
                        <b>1.3.</b>
                    
                    数据库
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../Database/Mysql、MariaDB/README.md">
            
                <span>
            
                    
                        <b>1.3.1.</b>
                    
                    Mysql/MariaDB
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1.1" data-path="../Database/Mysql、MariaDB/MySQL、MariaDB基础.html">
            
                <a href="../Database/Mysql、MariaDB/MySQL、MariaDB基础.html">
            
                    
                        <b>1.3.1.1.</b>
                    
                    MySQL/MariaDB基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.2" data-path="../Database/Mysql、MariaDB/php-mysql.html">
            
                <a href="../Database/Mysql、MariaDB/php-mysql.html">
            
                    
                        <b>1.3.1.2.</b>
                    
                    php-mysql
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../Database/MongoDB.html">
            
                <a href="../Database/MongoDB.html">
            
                    
                        <b>1.3.2.</b>
                    
                    MongoDB
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../Database/Redis.html">
            
                <a href="../Database/Redis.html">
            
                    
                        <b>1.3.3.</b>
                    
                    Redis
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../Linux/">
            
                <a href="../Linux/">
            
                    
                        <b>1.4.</b>
                    
                    Linux
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../Linux/Linux基础.html">
            
                <a href="../Linux/Linux基础.html">
            
                    
                        <b>1.4.1.</b>
                    
                    Linux基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../Linux/Linux启动流程、内核、grub、模块、内核的编译、anaconda自动化.html">
            
                <a href="../Linux/Linux启动流程、内核、grub、模块、内核的编译、anaconda自动化.html">
            
                    
                        <b>1.4.2.</b>
                    
                    Linux启动流程、内核、grub、模块等
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../Linux/Linux服务器.html">
            
                <a href="../Linux/Linux服务器.html">
            
                    
                        <b>1.4.3.</b>
                    
                    Linux服务器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../Linux/Linux状态信息.html">
            
                <a href="../Linux/Linux状态信息.html">
            
                    
                        <b>1.4.4.</b>
                    
                    Linux状态信息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../Linux/Linux网络客户端工具.html">
            
                <a href="../Linux/Linux网络客户端工具.html">
            
                    
                        <b>1.4.5.</b>
                    
                    Linux网络客户端工具
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="../Linux/Linux网络配置.html">
            
                <a href="../Linux/Linux网络配置.html">
            
                    
                        <b>1.4.6.</b>
                    
                    Linux网络配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.7" data-path="../Linux/Linux配置文件.md">
            
                <span>
            
                    
                        <b>1.4.7.</b>
                    
                    Linux配置文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.8" data-path="../Linux/Linux时间服务器.html">
            
                <a href="../Linux/Linux时间服务器.html">
            
                    
                        <b>1.4.8.</b>
                    
                    Linux时间服务器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.9" data-path="../Linux/Linux日志管理系统.html">
            
                <a href="../Linux/Linux日志管理系统.html">
            
                    
                        <b>1.4.9.</b>
                    
                    Linux日志管理系统
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.10" data-path="../Linux/sudo详解.html">
            
                <a href="../Linux/sudo详解.html">
            
                    
                        <b>1.4.10.</b>
                    
                    sudo详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.11" data-path="../Linux/SElinux.html">
            
                <a href="../Linux/SElinux.html">
            
                    
                        <b>1.4.11.</b>
                    
                    SELinux
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.12" data-path="../Linux/iptables.html">
            
                <a href="../Linux/iptables.html">
            
                    
                        <b>1.4.12.</b>
                    
                    iptables
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.13" data-path="../Linux/Linux_shell.html">
            
                <a href="../Linux/Linux_shell.html">
            
                    
                        <b>1.4.13.</b>
                    
                    Linux Shell
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.14" data-path="../Linux/shell_awk.html">
            
                <a href="../Linux/shell_awk.html">
            
                    
                        <b>1.4.14.</b>
                    
                    shell_awk
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.15" data-path="../Linux/OpenSSL、PKI搭建、算法.html">
            
                <a href="../Linux/OpenSSL、PKI搭建、算法.html">
            
                    
                        <b>1.4.15.</b>
                    
                    OpenSSL、PKI搭建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.16" data-path="../Linux/DNS服务器.html">
            
                <a href="../Linux/DNS服务器.html">
            
                    
                        <b>1.4.16.</b>
                    
                    DNS服务器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.17" data-path="../Linux/Frp内网穿透.html">
            
                <a href="../Linux/Frp内网穿透.html">
            
                    
                        <b>1.4.17.</b>
                    
                    Frp内网穿透
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.18" data-path="../Linux/Linux其他.md">
            
                <span>
            
                    
                        <b>1.4.18.</b>
                    
                    Linux其他
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../Linux_FileSystem/">
            
                <a href="../Linux_FileSystem/">
            
                    
                        <b>1.5.</b>
                    
                    Linux文件系统
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../Linux_FileSystem/FTP.html">
            
                <a href="../Linux_FileSystem/FTP.html">
            
                    
                        <b>1.5.1.</b>
                    
                    FTP
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../Linux_FileSystem/SAMBA.html">
            
                <a href="../Linux_FileSystem/SAMBA.html">
            
                    
                        <b>1.5.2.</b>
                    
                    SAMBA
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../Linux_Tools/">
            
                <a href="../Linux_Tools/">
            
                    
                        <b>1.6.</b>
                    
                    Linux工具
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../Linux_Tools/fzf工具.html">
            
                <a href="../Linux_Tools/fzf工具.html">
            
                    
                        <b>1.6.1.</b>
                    
                    fzf工具
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../Linux_Tools/工具集合.html">
            
                <a href="../Linux_Tools/工具集合.html">
            
                    
                        <b>1.6.2.</b>
                    
                    Linux工具集合
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="./">
            
                <a href="./">
            
                    
                        <b>1.7.</b>
                    
                    网站服务器
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="HTML基础.html">
            
                <a href="HTML基础.html">
            
                    
                        <b>1.7.1.</b>
                    
                    HTML基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="WEB基础.html">
            
                <a href="WEB基础.html">
            
                    
                        <b>1.7.2.</b>
                    
                    WEB基础
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.7.3" data-path="httpd.html">
            
                <a href="httpd.html">
            
                    
                        <b>1.7.3.</b>
                    
                    httpd/Apache
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="httpd.conf文件详解.html">
            
                <a href="httpd.conf文件详解.html">
            
                    
                        <b>1.7.4.</b>
                    
                    httpd.conf文件详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.5" data-path="Nginx.html">
            
                <a href="Nginx.html">
            
                    
                        <b>1.7.5.</b>
                    
                    Nginx
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6" data-path="HTTP状态码-详情.html">
            
                <a href="HTTP状态码-详情.html">
            
                    
                        <b>1.7.6.</b>
                    
                    HTTP状态码-详情
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../Common_Framework/">
            
                <a href="../Common_Framework/">
            
                    
                        <b>1.8.</b>
                    
                    常用框架
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../Common_Framework/LNMP.html">
            
                <a href="../Common_Framework/LNMP.html">
            
                    
                        <b>1.8.1.</b>
                    
                    LNMP
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../Common_Framework/LAMP.html">
            
                <a href="../Common_Framework/LAMP.html">
            
                    
                        <b>1.8.2.</b>
                    
                    LAMP
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../Docker&K8s/">
            
                <a href="../Docker&K8s/">
            
                    
                        <b>1.9.</b>
                    
                    容器及容器编排
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../Docker&K8s/Docker/Docker.html">
            
                <a href="../Docker&K8s/Docker/Docker.html">
            
                    
                        <b>1.9.1.</b>
                    
                    Docker
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1.1" data-path="../Docker&K8s/Docker/Docker.html">
            
                <a href="../Docker&K8s/Docker/Docker.html">
            
                    
                        <b>1.9.1.1.</b>
                    
                    Docker
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../Docker&K8s/K8s/">
            
                <a href="../Docker&K8s/K8s/">
            
                    
                        <b>1.9.2.</b>
                    
                    K8s
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.2.1" data-path="../Docker&K8s/K8s/K8s基础知识.html">
            
                <a href="../Docker&K8s/K8s/K8s基础知识.html">
            
                    
                        <b>1.9.2.1.</b>
                    
                    K8s基础知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2.2" data-path="../Docker&K8s/K8s/K8s安装与部署.html">
            
                <a href="../Docker&K8s/K8s/K8s安装与部署.html">
            
                    
                        <b>1.9.2.2.</b>
                    
                    K8s安装与部署
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../Git/">
            
                <a href="../Git/">
            
                    
                        <b>1.10.</b>
                    
                    Git
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../Git/Git基础.html">
            
                <a href="../Git/Git基础.html">
            
                    
                        <b>1.10.1.</b>
                    
                    Git基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../Git/GitLab服务器.html">
            
                <a href="../Git/GitLab服务器.html">
            
                    
                        <b>1.10.2.</b>
                    
                    GitLab服务器
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../Windows/">
            
                <a href="../Windows/">
            
                    
                        <b>1.11.</b>
                    
                    Windows系统
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../Windows/cmd命令.html">
            
                <a href="../Windows/cmd命令.html">
            
                    
                        <b>1.11.1.</b>
                    
                    cmd命令
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../Vim.html">
            
                <a href="../Vim.html">
            
                    
                        <b>1.12.</b>
                    
                    Vim
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../i3WM快捷键.html">
            
                <a href="../i3WM快捷键.html">
            
                    
                        <b>1.13.</b>
                    
                    i3WM快捷键
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../ADB命令.html">
            
                <a href="../ADB命令.html">
            
                    
                        <b>1.14.</b>
                    
                    ADB命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="../Tmux.html">
            
                <a href="../Tmux.html">
            
                    
                        <b>1.15.</b>
                    
                    Tmux
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="../Kindle.html">
            
                <a href="../Kindle.html">
            
                    
                        <b>1.16.</b>
                    
                    Kindle越狱指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17" data-path="../Other/">
            
                <a href="../Other/">
            
                    
                        <b>1.17.</b>
                    
                    Other
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.17.1" data-path="../Other/pandoc.html">
            
                <a href="../Other/pandoc.html">
            
                    
                        <b>1.17.1.</b>
                    
                    pandoc
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.2" data-path="../Other/jupyter&reveal.js.html">
            
                <a href="../Other/jupyter&reveal.js.html">
            
                    
                        <b>1.17.2.</b>
                    
                    jupyter & reveal.js
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.3" data-path="../Other/json.html">
            
                <a href="../Other/json.html">
            
                    
                        <b>1.17.3.</b>
                    
                    json
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.4" data-path="../Other/Reveal_js.html">
            
                <a href="../Other/Reveal_js.html">
            
                    
                        <b>1.17.4.</b>
                    
                    Reveal_js
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >httpd/Apache</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-anchor"></i><ul><li><a href="#httpd-mpm&#x6A21;&#x5757;">1. httpd-MPM&#x6A21;&#x5757;</a></li><li><a href="#httpd&#x914D;&#x7F6E;&#x6587;&#x4EF6;">2. httpd&#x914D;&#x7F6E;&#x6587;&#x4EF6;</a></li><li><a href="#httpd&#x57FA;&#x7840;&#x7528;&#x6CD5;">3. httpd&#x57FA;&#x7840;&#x7528;&#x6CD5;</a></li></ul></div><a href="#httpd-mpm&#x6A21;&#x5757;" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><blockquote>
<p><strong>This is httpd StudyNote.</strong></p>
</blockquote>
<h1 id="httpd-mpm&#x6A21;&#x5757;"><a name="httpd-mpm&#x6A21;&#x5757;" class="anchor-navigation-ex-anchor" href="#httpd-mpm&#x6A21;&#x5757;"><i class="fa fa-link" aria-hidden="true"></i></a>1. httpd-MPM&#x6A21;&#x5757;</h1>
<p><a href="../home/suofeiya/myGitbook/images/Apache-MPM.png" data-lightbox="705b8e8a-8bda-4075-935e-127b89d704fb" data-title=""><img src="../home/suofeiya/myGitbook/images/Apache-MPM.png" alt=""></a></p>
<p>&#x4FEE;&#x6539;MPM&#x9700;&#x8981;&#x66F4;&#x6539;<code>/etc/httpd/conf.modules.d/00-mpm.conf</code>&#x6587;&#x4EF6;&#x6307;&#x5B9A;&#x7684;&#x6A21;&#x5757;</p>
<h1 id="httpd&#x914D;&#x7F6E;&#x6587;&#x4EF6;"><a name="httpd&#x914D;&#x7F6E;&#x6587;&#x4EF6;" class="anchor-navigation-ex-anchor" href="#httpd&#x914D;&#x7F6E;&#x6587;&#x4EF6;"><i class="fa fa-link" aria-hidden="true"></i></a>2. httpd&#x914D;&#x7F6E;&#x6587;&#x4EF6;</h1>
<ul>
<li>&#x8BE6;&#x60C5;&#x53C2;&#x89C1;&#xFF1A;<a href="httpd.conf&#x6587;&#x4EF6;&#x8BE6;&#x89E3;.html">httpd.conf&#x6587;&#x4EF6;&#x8BE6;&#x89E3;</a></li>
<li>&#x4F7F;&#x7528;<code>httpd -t</code>&#x53EF;&#x4EE5;&#x68C0;&#x67E5;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x8BED;&#x6CD5;&#x9519;&#x8BEF;</li>
</ul>
<h1 id="httpd&#x57FA;&#x7840;&#x7528;&#x6CD5;"><a name="httpd&#x57FA;&#x7840;&#x7528;&#x6CD5;" class="anchor-navigation-ex-anchor" href="#httpd&#x57FA;&#x7840;&#x7528;&#x6CD5;"><i class="fa fa-link" aria-hidden="true"></i></a>3. httpd&#x57FA;&#x7840;&#x7528;&#x6CD5;</h1>
<ul>
<li><p><code>Alias</code>&#x8DEF;&#x5F84;&#x522B;&#x540D;</p>
<ul>
<li><blockquote>
<p>&#x7F16;&#x8F91;httpd&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF0C;&#x5B9A;&#x4E49;&#x8DEF;&#x5F84;&#x522B;&#x540D;&#xFF0C;&#x4F8B;&#x5982;</p>
<pre class="language-"><code class="lang-shell">Alias /URL/ <span class="token string">&quot;/PATH/TO/FILE/&quot;</span>
<span class="token operator">&lt;</span>Directory <span class="token string">&quot;/PATH/TO/FILE/&quot;</span><span class="token operator">&gt;</span>
   Options None
   AllowOverride None
   Require all granted
<span class="token operator">&lt;</span>Directory<span class="token operator">&gt;</span>
</code></pre>
<p>&#x91CD;&#x542F;&#x670D;&#x52A1;&#x5373;&#x53EF;</p>
<p>&#x9700;&#x8981;&#x6CE8;&#x610F;&#x7279;&#x522B;&#x7684;&#x4E00;&#x70B9;&#x662F;&#xFF1A;</p>
<p>&#x200B;            &#x7F16;&#x8F91;Alias&#x65F6;&#xFF0C;URL&#x5730;&#x5740;&#x5E94;&#x8BE5;&#x548C;&#x540E;&#x9762;&#x522B;&#x540D;&#x7684;&#x8DEF;&#x5F84;&#x5199;&#x6CD5;&#x4E00;&#x81F4;&#xFF0C;<code>Alias /URL/ &quot;/PATH/TO/FILE/&quot;</code>&#x662F;&#x4E00;&#x7EC4;&#xFF0C;&#x6216;&#x8005;&#x90FD;&#x4E0D;&#x5E26;&#x540E;&#x9762;&#x7684;&#x53CD;&#x659C;&#x7EBF;<code>/</code>&#xFF0C;&#x5426;&#x5219;&#x56DE;&#x62A5;<code>404</code>&#x9519;&#x8BEF;</p>
</blockquote>
</li>
</ul>
</li>
</ul>
<p>&#x6CE8;&#x610F;&#xFF1A;&#x2460;<code>Alias</code>&#x80FD;&#x591F;&#x8986;&#x76D6;&#x539F;&#x8BBE;&#x5B9A;&#x7684;index    &#x2461;<code>httpd-2.4</code>&#x7248;&#x672C;&#x4E0B;&#x9700;&#x8981;&#x5BF9;&#x76EE;&#x5F55;&#x8FDB;&#x884C;&#x663E;&#x5F0F;&#x6388;&#x6743;&#xFF0C;&#x800C;2.2&#x7248;&#x672C;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x4F7F;&#x7528;</p>
<ul>
<li><p>&#x57FA;&#x4E8E;&#x7528;&#x6237;&#x548C;&#x7EC4;&#x7684;&#x8BBF;&#x95EE;&#x63A7;&#x5236;&#xFF08;Basic&#x8BA4;&#x8BC1;&#xFF09;</p>
<ul>
<li><p>&#x57FA;&#x4E8E;&#x7528;&#x6237;&#x7684;&#x8BBF;&#x95EE;&#x63A7;&#x5236;&#xFF08;&#x6587;&#x672C;&#x6587;&#x4EF6;&#xFF09;</p>
<ul>
<li><blockquote>
<ol>
<li>&#x4F7F;&#x7528;<code>htpasswd</code>&#x547D;&#x4EE4;&#x751F;&#x6210;&#x6587;&#x672C;&#x683C;&#x5F0F;&#x7684;&#x5BC6;&#x7801;&#x6587;&#x4EF6;</li>
</ol>
<pre class="language-"><code class="lang-bash"><span class="token comment"># htpasswd &#x53C2;&#x6570;&#xFF1A;</span>
<span class="token comment"># -c &#xFF1A;&#x81EA;&#x52A8;&#x521B;&#x5EFA;&#x6307;&#x5B9A;&#x8DEF;&#x5F84;&#x4E0B;&#x7684;&#x6587;&#x4EF6;&#xFF0C;&#x56E0;&#x6B64;&#xFF0C;&#x8BE5;&#x6587;&#x4EF6;&#x4E0D;&#x5B58;&#x5728;&#x65F6;&#x4F7F;&#x7528;&#x8BE5;&#x547D;&#x4EE4;</span>
<span class="token comment"># -m&#xFF1A; &#x4F7F;&#x7528;md5&#x52A0;&#x5BC6;&#x65B9;&#x5F0F;&#x52A0;&#x5BC6;</span>
<span class="token comment"># -s&#xFF1A; &#x4F7F;&#x7528;sha&#x52A0;&#x5BC6;&#x65B9;&#x5F0F;&#x52A0;&#x5BC6;</span>
<span class="token comment"># -D&#xFF1A;&#x5220;&#x9664;&#x6307;&#x5B9A;&#x7528;&#x6237;</span>
htpasswd -c  /<span class="token environment constant">PATH</span>/TO/FILE USER_NAME        <span class="token comment"># &#x5F53;&#x6587;&#x4EF6;&#x4E0D;&#x5B58;&#x5728;&#x65F6;&#x624D;&#x4F7F;&#x7528;-c&#x9009;&#x9879;</span>
<span class="token comment"># &#x4F8B;&#x5982;&#xFF1A;</span>
htpasswd -c passwd/mypasswd suofeiya
</code></pre>
<ol>
<li>&#x5B9A;&#x4E49;&#x5B89;&#x5168;&#x57DF;</li>
</ol>
<pre class="language-"><code class="lang-shell"><span class="token operator">&lt;</span>Directory <span class="token string">&quot;/var/www/test&quot;</span><span class="token operator">&gt;</span>
       Options None
       Allowoverride authconfig
   AuthType Basic
   AuthName <span class="token string">&quot;Weclome!&quot;</span>
   AuthUserFile <span class="token string">&quot;/var/www/passwd/mypasswd&quot;</span>
   Require valid-user
<span class="token operator">&lt;</span>/Directory<span class="token operator">&gt;</span>
</code></pre>
<ol>
<li>&#x91CD;&#x542F;httpd&#x670D;&#x52A1;&#x5373;&#x53EF;</li>
</ol>
</blockquote>
</li>
</ul>
</li>
<li><p>&#x57FA;&#x4E8E;&#x7EC4;&#x7684;&#x8BBF;&#x95EE;&#x63A7;&#x5236;</p>
<ul>
<li><blockquote>
<p>&#x6B65;&#x9AA4;&#x548C;&#x57FA;&#x4E8E;&#x7528;&#x6237;&#x8BA4;&#x8BC1;&#x57FA;&#x672C;&#x76F8;&#x540C;</p>
<p>&#x6240;&#x9700;&#x8981;&#x589E;&#x52A0;&#x7684;&#x9009;&#x9879;&#x662F;&#xFF1A;</p>
<pre class="language-"><code class="lang-shell">AuthGroupFile <span class="token string">&quot;/PATH/TO/GROUP_FILE&quot;</span>            <span class="token comment"># &#x7EC4;&#x6587;&#x4EF6;</span>
Require group GRP_NAME <span class="token punctuation">..</span>.        <span class="token comment"># &#x7EC4;&#x540D;&#x79F0;</span>
</code></pre>
<p><code>GROUP_FILE</code>&#x7684;&#x683C;&#x5F0F;&#x662F;&#xFF1A;</p>
<pre class="language-"><code class="lang-shell">GROUP_NAME: GRP_NAME1 GRP_NAME2 <span class="token punctuation">..</span>.
</code></pre>
</blockquote>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<ul>
<li><p>&#x865A;&#x62DF;&#x4E3B;&#x673A;</p>
<ul>
<li><blockquote>
<ol>
<li><p>&#x57FA;&#x4E8E;&#x7AEF;&#x53E3;&#x7684;&#x865A;&#x62DF;&#x4E3B;&#x673A;</p>
<p>&#x2460;&#x7F16;&#x8F91;&#x4E3B;&#x914D;&#x7F6E;&#x6587;&#x4EF6;<code>/etc/httpd/conf/httpd.conf</code></p>
</li>
</ol>
<pre class="language-"><code class="lang-shell"><span class="token comment"># &#x5728;&#x539F;&#x6709;&#x7684;Listen 80&#x4E4B;&#x540E;&#x6DFB;&#x52A0;listen 8888</span>
Listen <span class="token number">8888</span>
</code></pre>
<p>&#x200B;            &#x2461;&#x521B;&#x5EFA;&#x5E76;&#x7F16;&#x8F91;<code>/etc/httpd/conf.d/vhost.conf</code>&#x6587;&#x4EF6;</p>
<pre class="language-"><code class="lang-shell"><span class="token operator">&lt;</span>VirtualHost <span class="token number">172.16</span>.122.128:888<span class="token operator"><span class="token file-descriptor important">8</span>&gt;</span>
 DocumentRoot <span class="token string">&quot;/var/www/vhost/&quot;</span>
 ServerName    v1.com
<span class="token operator">&lt;</span>/VirtualHost<span class="token operator">&gt;</span>
</code></pre>
<ol>
<li><p>&#x57FA;&#x4E8E;IP&#x7684;&#x865A;&#x62DF;&#x4E3B;&#x673A;</p>
<p>&#x2460;&#x4E3A;&#x4E3B;&#x673A;&#x7F51;&#x5361;&#x518D;&#x6DFB;&#x52A0;&#x4E00;&#x4E2A;IP&#x5730;&#x5740;</p>
</li>
</ol>
<pre class="language-"><code class="lang-bash"><span class="token function">ip</span> addr <span class="token function">add</span> <span class="token number">172.16</span>.122.129/16 dev ens33
<span class="token comment"># &#x67E5;&#x770B;ens33&#x8BBE;&#x5907;&#x7684;ip&#x60C5;&#x51B5;</span>
<span class="token function">ip</span> addr show dev ens33
</code></pre>
<p>&#x200B;            &#x2461;&#x7F16;&#x8F91;<code>/etc/httpd/conf.d/vhost.conf</code>&#x6587;&#x4EF6;</p>
<pre class="language-"><code class="lang-shell"><span class="token operator">&lt;</span>VirtualHost <span class="token number">172.16</span>.122.12<span class="token operator"><span class="token file-descriptor important">9</span>&gt;</span>
 DocumentRoot <span class="token string">&quot;/var/www/html_129/&quot;</span>
 ServerName    v_129.com
<span class="token operator">&lt;</span>/VirtualHost<span class="token operator">&gt;</span>
</code></pre>
<ol>
<li><p>&#x57FA;&#x4E8E;&#x57DF;&#x540D;&#xFF08;FQDN&#xFF09;&#x7684;&#x865A;&#x62DF;&#x4E3B;&#x673A;</p>
<p>&#x2460;&#x7F16;&#x8F91;hosts&#x6587;&#x4EF6;&#xFF0C;&#x6DFB;&#x52A0;&#x4E00;&#x6761;&#x57DF;&#x540D;&#x89E3;&#x6790;<code>172.16.122.128  1.com 2.com</code></p>
<p>&#x2461;&#x7F16;&#x8F91;<code>vhost.conf</code>&#x6587;&#x4EF6;</p>
</li>
</ol>
<pre class="language-"><code class="lang-shell"><span class="token operator">&lt;</span>VirtualHost <span class="token number">172.16</span>.122.12<span class="token operator"><span class="token file-descriptor important">9</span>&gt;</span>
 DocumentRoot <span class="token string">&quot;/var/www/html2/&quot;</span>
 ServerName   <span class="token number">2</span>.com
<span class="token operator">&lt;</span>/VirtualHost<span class="token operator">&gt;</span>
</code></pre>
<p>&#x6CE8;&#x610F;&#xFF1A;&#x2460;&#x5982;&#x679C;&#x9700;&#x8981;&#x5C06;&#x4E3B;&#x673A;&#x865A;&#x62DF;&#x5316;&#xFF0C;&#x9700;&#x8981;&#x5C06;&#x4E3B;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E2D;&#x7684;<code>DocumentRoot /var/www/html</code>&#x6CE8;&#x91CA;&#x6389;&#xFF0C;&#x7136;&#x540E;&#x518D;&#x6DFB;&#x52A0;&#x4E3A;&#x865A;&#x62DF;&#x4E3B;&#x673A;&#x5373;&#x53EF;    &#x2461;&#x5F53;httpd&#x7248;&#x672C;&#x4E3A;2.2&#x7248;&#x672C;&#x65F6;&#xFF0C;&#x9700;&#x8981;&#x5728;&#x865A;&#x62DF;&#x4E3B;&#x673A;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E4B;&#x524D;&#x6DFB;&#x52A0;<code>NameVirtualHost 172.16.122.128:80</code></p>
</blockquote>
</li>
</ul>
</li>
<li><p>&#x4E3A;httpd&#x6DFB;&#x52A0;<code>server-status</code>&#x9875;&#x9762;</p>
<ul>
<li><blockquote>
<p>&#x2460;&#x7F16;&#x8F91;<code>/etc/httpd/conf/httd.conf</code>&#x6587;&#x4EF6;</p>
<p>&#x200B;            &#x786E;&#x4FDD;<code>mod_status.so</code>&#x88AB;&#x52A0;&#x8F7D;&#xFF0C;&#x5982;&#x679C;&#x672A;&#x88AB;&#x52A0;&#x8F7D;&#x9700;&#x8981;&#x6DFB;&#x52A0;&#xFF0C;&#x5728;&#x9ED8;&#x8BA4;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;2.4.6&#x7248;&#x672C;&#x7684;httpd&#x5DF2;&#x9ED8;&#x8BA4;&#x52A0;&#x8F7D;&#x8BE5;&#x6A21;&#x5757;&#xFF0C;&#x6240;&#x4EE5;&#x65E0;&#x9700;&#x91CD;&#x590D;&#x6DFB;&#x52A0;</p>
<pre class="language-"><code class="lang-bash">LoadModule status_module modules/mod_status.so
</code></pre>
<p>&#x2461;&#x7F16;&#x8F91;&#x4E3B;&#x673A;&#x6587;&#x4EF6;&#x6216;&#x8005;&#x865A;&#x62DF;&#x4E3B;&#x673A;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF0C;&#x5728;&#x8FD9;&#x91CC;&#x6211;&#x4F7F;&#x7528;<code>/etc/httpd/conf.d/vhost.conf</code></p>
<pre class="language-"><code class="lang-shell"><span class="token operator">&lt;</span>VirtualHost <span class="token number">172.16</span>.122.12<span class="token operator"><span class="token file-descriptor important">8</span>&gt;</span>
 DocumentRoot <span class="token string">&quot;/var/www/html2/&quot;</span>
 ServerName   <span class="token number">2</span>.com
 <span class="token operator">&lt;</span>Location /server-status<span class="token operator">&gt;</span>
 SetHandler server-status
 <span class="token operator">&lt;</span>RequireAll<span class="token operator">&gt;</span>
   Require <span class="token function">ip</span> <span class="token number">172.16</span>
 <span class="token operator">&lt;</span>/RequireAll<span class="token operator">&gt;</span>
 <span class="token operator">&lt;</span>/Location<span class="token operator">&gt;</span>
<span class="token operator">&lt;</span>/VirtualHost<span class="token operator">&gt;</span>
</code></pre>
<p>&#x5176;&#x4E2D;&#x4F7F;&#x7528;<code>RequireAll</code>&#x6765;&#x9650;&#x5236;&#x53EF;&#x4EE5;&#x8BBF;&#x95EE;&#x8BE5;&#x8DEF;&#x5F84;&#x7684;ip&#x7F51;&#x7EDC;</p>
</blockquote>
</li>
</ul>
</li>
<li><p><strong>&#x914D;&#x7F6E;http&#x652F;&#x6301;https</strong></p>
<ul>
<li><blockquote>
<h5 id="&#x4E00;&#x3001;&#x672C;&#x5730;&#x751F;&#x6210;ssl&#x8BC1;&#x4E66;"><a name="&#x4E00;&#x3001;&#x672C;&#x5730;&#x751F;&#x6210;ssl&#x8BC1;&#x4E66;" class="anchor-navigation-ex-anchor" href="#&#x4E00;&#x3001;&#x672C;&#x5730;&#x751F;&#x6210;ssl&#x8BC1;&#x4E66;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4E00;&#x3001;&#x672C;&#x5730;&#x751F;&#x6210;ssl&#x8BC1;&#x4E66;</h5>
<p><strong>&#x5728;CA&#x670D;&#x52A1;&#x5668;&#x4E0A;</strong>&#xFF0C;&#x8FDB;&#x5165;<code>/etc/pki/CA/</code>&#xFF0C;&#x751F;&#x6210;&#x79C1;&#x94A5;     </p>
<pre class="language-"><code class="lang-bash"><span class="token punctuation">(</span>umask 077<span class="token punctuation">;</span>openssl genrsa -out private/cakey.pem <span class="token number">2048</span><span class="token punctuation">)</span>
</code></pre>
<p>&#x7F16;&#x8F91;<code>/etc/pki/tls/openssl.cnf</code>&#x751F;&#x6210;&#x79C1;&#x94A5;&#x65F6;&#x7684;&#x9ED8;&#x8BA4;&#x9009;&#x9879;</p>
<p>&#x751F;&#x6210;&#x81EA;&#x7B7E;&#x8BC1;&#x4E66;</p>
<pre class="language-"><code class="lang-bash">openssl req -new -x509 -key private/cakey.pem -out cacert.pem -days <span class="token number">3650</span>
</code></pre>
<p><strong>&#x5728;httpd&#x670D;&#x52A1;&#x5668;&#x4E0A;</strong>&#xFF0C;&#x521B;&#x5EFA;<code>/etc/httpd/ssl</code>&#x76EE;&#x5F55;&#x4EE5;&#x5B58;&#x653E;ssl&#x8BC1;&#x4E66;</p>
<p>&#x751F;&#x6210;httpd&#x7684;&#x79C1;&#x94A5;</p>
<pre class="language-"><code class="lang-bash"><span class="token punctuation">(</span>umask 077<span class="token punctuation">;</span> openssl genrsa <span class="token number">1024</span> <span class="token operator">&gt;</span> httpd.key<span class="token punctuation">)</span>
</code></pre>
<p>&#x751F;&#x6210;httpd&#x7684;&#x81EA;&#x7B7E;&#x8BC1;&#x4E66;</p>
<pre class="language-"><code class="lang-bash">openssl req -new -key httpd.key -out httpd.csr
</code></pre>
<p>&#x5C06;&#x751F;&#x6210;&#x597D;&#x7684;&#x81EA;&#x7B7E;&#x8BC1;&#x4E66;&#x53D1;&#x9001;&#x5230;CA&#x670D;&#x52A1;&#x5668;&#xFF0C;<strong>&#x5728;CA&#x670D;&#x52A1;&#x5668;&#x4E0A;</strong>&#x9A8C;&#x8BC1;</p>
<pre class="language-"><code class="lang-bash">openssl ca -in /tmp/httpd.csr -out /tmp/httpd.crt -days <span class="token number">365</span>
</code></pre>
<p>&#x5C06;&#x751F;&#x6210;&#x597D;&#x7684;&#x8BC1;&#x4E66;<code>httpd.crt</code>&#x56DE;&#x4F20;&#x7ED9;httpd&#x670D;&#x52A1;&#x5668;</p>
<p>&#x914D;&#x7F6E;httpd&#x652F;&#x6301;&#x4F7F;&#x7528;ssl</p>
<pre class="language-"><code class="lang-bash">yum <span class="token function">install</span> -y mod_ssl
</code></pre>
<p>&#x7F16;&#x8F91;httpd&#x914D;&#x7F6E;&#x6587;&#x4EF6;</p>
<pre class="language-"><code class="lang-shell"><span class="token comment"># &#x66F4;&#x6539;&#x6216;&#x8005;&#x6DFB;&#x52A0;&#x4EE5;&#x4E0B;&#x5185;&#x5BB9;</span>
<span class="token operator">&lt;</span>VirtualHost <span class="token number">172.16</span>.122.128:44<span class="token operator"><span class="token file-descriptor important">3</span>&gt;</span>
DocumentRoot <span class="token string">&quot;/var/www/html2/&quot;</span>
ServerName   <span class="token number">2</span>.com:443
SSLCertificateFile /etc/httpd/ssl/httpd.crt
SSLCertificateKeyFile /etc/httpd/ssl/httpd.key
<span class="token operator">&lt;</span>/VirtualHost<span class="token operator">&gt;</span>
</code></pre>
<p>&#x91CD;&#x542F;&#x670D;&#x52A1;&#x5668;&#x5373;&#x53EF;</p>
<blockquote>
<p>&#x6D4B;&#x8BD5;&#x57FA;&#x4E8E;https&#x8BBF;&#x95EE;&#x76F8;&#x5E94;&#x7684;&#x4E3B;&#x673A;&#xFF1A;</p>
<pre class="language-"><code class="lang-bash">openssl s_client <span class="token punctuation">[</span>hostname:port<span class="token punctuation">]</span> <span class="token punctuation">[</span>-cert FILENAME<span class="token punctuation">]</span> <span class="token punctuation">[</span>-CApath DIR<span class="token punctuation">]</span> <span class="token punctuation">[</span>-CAfile FILENAME<span class="token punctuation">]</span>
<span class="token comment"># &#x4F8B;&#x5982;&#xFF1A;</span>
openssl s_client -connect <span class="token number">1</span>.com:443 CAfile /tmp/cacert.pem
</code></pre>
</blockquote>
<h5 id="&#x4E8C;&#x3001;&#x4F7F;&#x7528;ssl&#x8BC1;&#x4E66;"><a name="&#x4E8C;&#x3001;&#x4F7F;&#x7528;ssl&#x8BC1;&#x4E66;" class="anchor-navigation-ex-anchor" href="#&#x4E8C;&#x3001;&#x4F7F;&#x7528;ssl&#x8BC1;&#x4E66;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4E8C;&#x3001;&#x4F7F;&#x7528;ssl&#x8BC1;&#x4E66;</h5>
</blockquote>
</li>
</ul>
</li>
<li><p>httpd&#x81EA;&#x5E26;&#x7684;&#x5DE5;&#x5177;&#x7A0B;&#x5E8F;</p>
<ul>
<li><blockquote>
<p><code>htpasswd</code>&#xFF1A;httpd&#x81EA;&#x5E26;&#x7684;&#x52A0;&#x5BC6;&#x5DE5;&#x5177;</p>
<p><code>apachectl</code>&#xFF1A;httpd&#x81EA;&#x5E26;&#x7684;&#x63A7;&#x5236;&#x811A;&#x672C;&#xFF0C;&#x652F;&#x6301;start&#x3001;stop&#x3001;restart&#x7B49;&#x6307;&#x4EE4;</p>
<p><code>apxs</code>&#xFF1A;&#x8BE5;&#x5DE5;&#x5177;&#x7531;httpd-devel&#x63D0;&#x4F9B;&#xFF0C;&#x7528;&#x4E8E;&#x6269;&#x5C55;&#x7B2C;&#x4E09;&#x65B9;&#x6A21;&#x5757;</p>
<p>&#x200B;                apxs&#x662F;apache&#x7BA1;&#x7406;&#x6A21;&#x5757;&#x7684;&#x5DE5;&#x5177;&#xFF0C;&#x5B83;&#x505A;&#x7684;&#x662F;&#x5C06;mod.c&#x751F;&#x6210;mod.so&#xFF0C;&#x5E76;&#x4F7F;&#x5176;&#x80FD;&#x88AB;apache&#x52A0;&#x8F7D;&#xFF0C;&#x4F7F;&#x7528;apxs&#x7684;&#x524D;&#x63D0;&#xFF1A;<code>mod_so</code>&#x5DF2;&#x88AB;&#x52A0;&#x8F7D;</p>
<p>&#x200B;                &#x8BE6;&#x60C5;&#x53C2;&#x89C1;&#xFF1A;<a href="https://www.2cto.com/shouce/ApacheManual/programs/apxs.html" target="_blank">https://www.2cto.com/shouce/ApacheManual/programs/apxs.html</a></p>
<p><code>rotatelogs</code>&#xFF1A;&#x65E5;&#x5FD7;&#x6EDA;&#x52A8;&#x5DE5;&#x5177;&#xFF0C;&#x7528;&#x4E8E;&#x65E5;&#x5FD7;&#x5206;&#x5272;</p>
<p><code>suexec</code>&#xFF1A;&#x5F53;&#x8BBF;&#x95EE;&#x67D0;&#x4E9B;&#x9700;&#x8981;&#x7279;&#x5B9A;&#x6743;&#x9650;&#x7684;&#x8D44;&#x6E90;&#x65F6;&#xFF0C;&#x4E34;&#x65F6;&#x5207;&#x6362;&#x81F3;&#x6307;&#x5B9A;&#x7528;&#x6237;</p>
<p><code>ab</code>&#xFF1A;apache bench&#xFF0C;httpd&#x81EA;&#x5E26;&#x7684;&#x538B;&#x529B;&#x6D4B;&#x8BD5;&#x5DE5;&#x5177;</p>
</blockquote>
</li>
</ul>
</li>
<li><p>httpd&#x7684;&#x538B;&#x529B;&#x6D4B;&#x8BD5;&#x5DE5;&#x5177;</p>
<ul>
<li><blockquote>
<p><code>ab</code>&#xFF1A;Apache HTTP server benchmarking tool</p>
<p>&#x200B;            &#x683C;&#x5F0F;&#xFF1A;<code>ab [OPTIONS] URL</code></p>
<p>&#x200B;            &#x53C2;&#x6570;&#xFF1A;<code>-n</code>&#x8BF7;&#x6C42;&#x6570;&#x91CF;            <code>-c</code>&#x6A21;&#x62DF;&#x5E76;&#x884C;&#x6570;&#x91CF;            <code>-k</code>&#x4EE5;&#x6301;&#x4E45;&#x8FDE;&#x63A5;&#x6A21;&#x5F0F;&#x8FDE;&#x63A5;&#x8FDB;&#x884C;&#x6D4B;&#x8BD5;</p>
<p>&#x5176;&#x4ED6;&#x7B2C;&#x4E09;&#x65B9;&#x538B;&#x529B;&#x6D4B;&#x8BD5;&#x5DE5;&#x5177;&#xFF1A;</p>
<p><code>webbench</code>&#xFF0C;<code>http_load</code>&#xFF0C;<code>selge</code>&#xFF0C;<code>jmeter</code>&#xFF0C;<code>loadrunner</code>&#xFF0C;<code>tcpcopy</code>&#x7B49;</p>
</blockquote>
</li>
</ul>
</li>
</ul>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; AGou 2020 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2020-03-02 20:42:24
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="WEB基础.html" class="navigation navigation-prev " aria-label="Previous page: WEB基础">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="httpd.conf文件详解.html" class="navigation navigation-next " aria-label="Next page: httpd.conf文件详解">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"httpd/Apache","level":"1.7.3","depth":2,"next":{"title":"httpd.conf文件详解","level":"1.7.4","depth":2,"path":"WEB_Server/httpd.conf文件详解.md","ref":"WEB_Server/httpd.conf文件详解.md","articles":[]},"previous":{"title":"WEB基础","level":"1.7.2","depth":2,"path":"WEB_Server/WEB基础.md","ref":"WEB_Server/WEB基础.md","articles":[]},"dir":"ltr"},"config":{"plugins":["github@^2.0.0","edit-link@^2.0.2","anchors@^0.7.1","include-codeblock@^3.0.2","tbfed-pagefooter@^0.0.1","expandable-chapters-small@^0.1.7","anchor-navigation-ex@0.1.8","prism","-highlight","insert-logo","-lunr","-search","search-pro","splitter","lightbox","github-buttons","-sharing","sharing-plus","donate","code","-klipse","livereload"],"root":".","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright © AGou 2020","modify_label":"该文件修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"prism":{"css":["prismjs/themes/prism-tomorrow.css"]},"github":{"url":"https://github.com/AGou-ops"},"livereload":{},"splitter":{},"search-pro":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"code":{"copyButtons":true},"donate":{"alipay":"https://agou-ops.github.io/images/alipay.png","alipayText":"支付宝打赏","button":"打赏","title":"","wechat":"https://agou-ops.github.io/images/wechatpay.png","wechatText":"微信打赏"},"fontsettings":{"theme":"white","family":"sans","size":2},"anchor-navigation-ex":{"isRewritePageTitle":true,"tocLevel1Icon":"fa fa-hand-o-right","tocLevel2Icon":"fa fa-hand-o-right","tocLevel3Icon":"fa fa-hand-o-right"},"lightbox":{"jquery":true,"sameUuid":false},"github-buttons":{"repo":"AGou-ops/myStudyNote","types":["star","watch","fork"],"size":"small"},"expandable-chapters-small":{},"include-codeblock":{"check":false,"edit":true,"fixlang":false,"lang":"","template":"ace","theme":"chrome","unindent":true},"sharing":{"qq":true,"all":["douban","facebook","google","hatenaBookmark","instapaper","linkedin","twitter","weibo","messenger","qq","qzone","viber","vk","weibo","pocket","stumbleupon","whatsapp"],"douban":false,"facebook":false,"weibo":true,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":false,"messenger":false,"line":false,"vk":false,"pocket":false,"google":false,"viber":false,"stumbleupon":false,"qzone":true,"linkedin":false},"edit-link":{"label":"Edit This Page","base":"https://github.com/AGou-ops/myStudyNote"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":true},"anchors":{},"insert-logo":{"style":"background: none; max-height: 50px; min-height: 50px","url":"https://s2.ax1x.com/2019/12/10/QBD0xO.jpg"}},"theme":"default","author":"AGou","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"AGou's StudyNote","language":"zh-hans","output.name":"site","links":{"sidebar":{"◆点击进入我的个人博客":"http://agou-ops.github.io"}},"gitbook":"3.2.3","description":"岂能尽如人意，但求无愧我心。"},"file":{"path":"WEB_Server/httpd.md","mtime":"2020-03-02T12:42:24.296Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-03-02T12:42:32.383Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-edit-link/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-insert-logo/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lightbox/js/lightbox.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-donate/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

